package com.esheeper.mainserver.pojo;


import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("Collection")
public class Collection {
    String id;


    int getUnixSecondTimeStamp(){
        if(id == null){
            return -1;
        }
        String substring = id.substring(0, 8);
        return Integer.parseInt(substring,16);
    }
}
